<?php

namespace App\Http\Requests\QH;

use Illuminate\Foundation\Http\FormRequest;

class SchoolPlanStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'schoolId' => 'bail|required|exists:qh_schools,id',
            'schoolSpecId' => 'bail|required|exists:qh_school_specs,id',
            'class' => 'bail|nullable|string',
            'year' => 'bail|nullable|integer',
            'num' => 'bail|nullable|integer',
            'price' => 'bail|nullable|numeric',
            'whcd' => 'bail|nullable|string',
            'xz' => 'bail|nullable|string',
            'remarks' => 'bail|nullable|string',
        ];
    }
}
